package com.sairobo.admin.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 百度云富文本配置---上传到七牛
 * @author shengming
 * @version V1.0
 * @description:
 * @date 2018/1/25 16:28
 */
@Component
@ConfigurationProperties(prefix = "UEditor")
public class UEditorConfig {
    public static final String QINIU="qiniu";
    public static final String LOCAL="local";

    private String uploadPath;//上传本地时候此配置生效
    private String uploadTo;//上传到  七牛或者本地 qiniu or local


    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }

    public String getUploadTo() {
        return uploadTo;
    }

    public void setUploadTo(String uploadTo) {
        this.uploadTo = uploadTo;
    }
}
